﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SpacesToBloggerMigrator
{
    class EngineFactory
    {
        public static IBlogEngine GetInstance(string blogEngineName)
        {
            IBlogEngine instance;
            switch (blogEngineName)
            {
                case "spaces":
                    instance =  new SpacesEngine();
                    break;
                case "blogger":
                    instance =  new BloggerEngine();
                    break;
                default:
                    return null;
            }
            return instance;
        }
    }
}
